package ar.edu.caece.compiler.grammar.attributes.tree;

import java.util.ArrayList;
import java.util.List;

public class NodeListaBloques extends AttributeTreeNode{

	private List<NodeFuncProc> bloques;
	private NodeFuncProc principal;
	private NodeDeclaraciones globales;
	
	public NodeListaBloques() {
		bloques = new ArrayList<NodeFuncProc>();
		principal = new NodeFuncProc();
		globales = new NodeDeclaraciones();
	}
	
	public NodeListaBloques(List<NodeFuncProc> bloques, NodeFuncProc principal) {
		super();
		this.bloques = bloques;
		this.principal = principal;
	}

	public void addBloque(NodeFuncProc bloque) {
		bloques.add(bloque);
	}
	
	public void setBloques(List<NodeFuncProc> bloques) {
		this.bloques = bloques;
	}

	public List<NodeFuncProc> getBloques() {
		return bloques;
	}

	public void setPrincipal(NodeFuncProc principal) {
		this.principal = principal;
	}

	public NodeFuncProc getPrincipal() {
		return principal;
	}

	public void setGlobales(NodeDeclaraciones globales) {
		this.globales = globales;
	}

	public NodeDeclaraciones getGlobales() {
		return globales;
	}
	
	
}
